package com.ziyueyuwen.xiniao.bean.query;

import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author wancheng  on 2019/3/9.
 */
public class ClassQuery extends PageQuery{

    @NotNull
    private Integer courseId;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date beginTime;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endTime;

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
